<?php

namespace app\api\validate;

use app\common\validate\BaseValidate;

class Setmeal extends BaseValidate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'id' => 'require|integer',
        'categoryId' => 'require|integer',
    ];
    /**
     * 提示消息
     */
    protected $message = [
        'id.require' => 'id必须',
        'id.integer' => 'id要为数字',
        'categoryId.require' => '分类id必须',
        'categoryId.integer' => '分类id要为数字',
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'list'  => ['categoryId'],
        'disList'  => ['id'],
    ];
}
